<HTML>
<HEAD>
</HEAD>
<BODY><br>

<H1><CENTER><FONT color="red">TIPS</FONT></CENTER></H1>
<H2><CENTER><FONT color="blue">Month Report</FONT></CENTER></H2>
<HR>

<FORM name="form1" method="POST" action="{$PHP_SELF}">
	<a href="index.php">Home</a>
<CENTER>
<TABLE width=100%>
	<TR>
		<TR>
		<TD align="center">Item :
		  <SELECT name="item" onChange="document.form1.submit();">
      {html_options selected="$selectedExchange" values="$itemCmb" output="$itemCmb"}
			</SELECT>&nbsp;&nbsp;&nbsp;&nbsp;
		  Bhav Date :
		  {html_select_date prefix="fromDate" start_year=-5 end_year=+2 day_value_format="%02d"
   		month_value_format="%m" month_format="%b" field_order="DMY" time=$fDate}
   		
    	&nbsp;&nbsp;&nbsp;&nbsp;Expiry Date : 
      <SELECT name="expiryDate" > 
      {html_options selected="$expiryDateSelected" values="$expiryDateValues" output="$expiryDateOptions"}
      </SELECT>
		</TD>
	</TR>
	</TR>
</TABLE><br>

<TABLE>
	<TR>
		<TD><input type="submit" name="sbmtbtn" value="Report"></TD>
	</TR>
</TABLE><br><br>

<TABLE border=1 width=40% cellpadding="0" cellspacing="0">
	<TR bgcolor="pink">
		<TH align="center">Open</TH>
		<TH align="center">High</TH>
		<TH align="center">Low</TH>
		<TH align="center">Close</TH>
	</TR>
	{$msg}
	<TR>
		<TD align="center">{$open}&nbsp;</TD>
		<TD align="center">{$high}&nbsp;</TD>
		<TD align="center">{$low}&nbsp;</TD>
		<TD align="center">{$close}&nbsp;</TD>
	</TR>
</TABLE><br><br>

<TABLE border=1 width=90% cellpadding="0" cellspacing="0">
	<TR bgcolor="pink">
		<TH align="center"><font color="blue">R3</font></TH>
		<TH align="center"><font color="blue">R2</font></TH>
		<TH align="center"><font color="blue">R1</font></TH>
		<TH align="center"><font color="green">Pivot</font></TH>
		<TH align="center"><font color="red">S1</font></TH>
		<TH align="center"><font color="red">S2</font></TH>
		<TH align="center"><font color="red">S3</font></TH>
	</TR>
	<TR>
		<TD align="center"><font color="blue">{$R3}</font></TD>
		<TD align="center"><font color="blue">{$R2}</font></TD>
		<TD align="center"><font color="blue">{$R1}</font></TD>
		<TD align="center"><font color="green">{$pivot}</font></TD>
		<TD align="center"><font color="red">{$S1}</font></TD>
		<TD align="center"><font color="red">{$S2}</font></TD>
		<TD align="center"><font color="red">{$S3}</font></TD>
	</TR>
</TABLE>
<BR><BR>
<TABLE border=1 width=30% cellpadding="0" cellspacing="0">
	<TR bgcolor="pink">
		<TH align="center">Best High</TH>
		<TH align="center">Best Low</TH>
	</TR>
	<TR>
		<TD align="center"><font color="red">{$bHigh}</font></TD>
		<TD align="center"><font color="blue">{$bLow}</font></TD>
	</TR>
</TABLE>

</CENTER>
</FORM>
</BODY>
</HTML>